package com.sugon.modules.mold.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 模具故障报修参数
 *
 * @Author YuXD
 * @Version 1.0
 * @since 2023/2/9
 */

@Data
public class MoldCallRepairParam implements Serializable {

    /**
     * 模具ID
     */
    @NotEmpty(message = "故障模具必选！")
    private String moldId;

    /**
     * 设备ID
     */
    @NotEmpty(message = "故障模具必选！")
    private String devId;

    /**
     * 故障ID
     */
    @NotEmpty(message = "故障模具必选！")
    private String faultType;

    /**
     * 停线标识
     */
    @NotNull(message = "是否停线必选！")
    private Integer stoplineFlag;

    /**
     * 停线开始时间，停线时填
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date stoplineStartTime;

    /**
     * 备注，按需填写
     */
    private String remark;
}
